<ul class="span8">
    <h4 class="text-center text-error">New Arrivals</h4>
    <?php 							
    foreach($this->products as $_product)
    {							
    ?>
    <li class="span3">
        <div class="thumbnail">
            <form class="form-inline" action="cart.php">
                <p class="text-center"><a href="product.php?id=<?php echo $_product['id']?>"><img src="static/<?php echo $_product['image']?>" alt=""></a></p>
                <div class="caption">
                    <h5 class="text-center text-info"><a href="product.php?id=<?php echo $_product['id']?>"><?php echo $_product['name']?></a></h5>
                    <p class="text-center">
                        <span class="text-success">Size:</span>
                        <select name="pid" class="input-mini">
                            <option value="<?php echo $_product['bo']->getID() ?>"><?php echo $_product['bo']->getSize() ?></option>
                            <?php foreach($_product['bo']->getVariationBOs() as $k => $pv)
                            { if($pv->isOnline()){
                            ?>
                            <option value="<?php echo $pv->getID() ?>"><?php echo $pv->getSize() ?></option>								
                            <?php
                            }}
                            ?>
                        </select>

                    </p>

                    <p class="text-center">
                        <span class="strike text-warning">INR <?php echo $_product['price']?></span>&nbsp;
                        <span class="text-error"><strong>INR <?php echo $_product['saleprice']?></strong></span>
                    </p>
                    <p class="text-center"><button class="btn btn-inverse" name="action" value="add" type="submit"><i class="icon-shopping-cart icon-white"></i>Buy</button></p>
            </form> 
        </div>
        </div>
    </li>
    <?php
    }
    ?>

</ul>				 